package com._jmx;

/**
 * @Author: huangya
 * @Date: 2020/4/19
 * @Description:
 */
public class TomcatUtil implements TomcatUtilMBean {
    private String serverName = "Catalina";
    private int port = 8080;

    @Override
    public String getServerName() {
        return serverName;
    }

    @Override
    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    @Override
    public int getPort() {
        return port;
    }

    @Override
    public void setPort(int port) {
        this.port = port;
    }

    @Override
    public String getTomcatInfo() {
        return "The Tomcat's name is " + serverName + ",port is " + port;
    }
}